profvis all benchmarks
timer <- system.time({
my_profile <- profvis::profvis({
res = benchmark_std(runs = 3)
res_io = benchmark_io(runs = 3)
res_io = benchmark_std(runs = 3, cores = 4)
})
})
## # Programming benchmarks (5 tests):
## 3,500,000 Fibonacci numbers calculation (vector calc): 0.767 (sec).
## Grand common divisors of 1,000,000 pairs (recursion): 0.577 (sec).
## Creation of a 3,500 x 3,500 Hilbert matrix (matrix calc): 0.223 (sec).
## Creation of a 3,000 x 3,000 Toeplitz matrix (loops): 0.877 (sec).
## Escoufier's method on a 60 x 60 matrix (mixed): 1.01 (sec).
## # Matrix calculation benchmarks (5 tests):
## Creation, transp., deformation of a 5,000 x 5,000 matrix: 0.493 (sec).
## 2,500 x 2,500 normal distributed random matrix^1,000: 0.607 (sec).
## Sorting of 7,000,000 random values: 0.643 (sec).
## 2,500 x 2,500 cross-product matrix (b = a' * a): 5.99 (sec).
## Linear regr. over a 5,000 x 500 matrix (c = a \ b'): 0.48 (sec).
## # Matrix function benchmarks (5 tests):
## Cholesky decomposition of a 3,000 x 3,000 matrix: 3.11 (sec).
## Determinant of a 2,500 x 2,500 random matrix: 1.82 (sec).
## Eigenvalues of a 640 x 640 random matrix: 0.427 (sec).
## FFT over 2,500,000 random values: 0.17 (sec).
## Inverse of a 1,600 x 1,600 random matrix: 1.61 (sec).
## Preparing read/write io
## # IO benchmarks (2 tests) for size 50 MB:
## Writing a csv with 6250000 values: 21.1 (sec).
## Writing a csv with 6250000 values: 21.1 (sec).
## Writing a csv with 6250000 values: 21 (sec).
## Reading a csv with 6250000 values: 2.43 (sec).
## Reading a csv with 6250000 values: 2.33 (sec).
## Reading a csv with 6250000 values: 2.28 (sec).
## # IO benchmarks (2 tests) for size 5 MB:
## Writing a csv with 625000 values: 2.08 (sec).
## Writing a csv with 625000 values: 2.09 (sec).
## Writing a csv with 625000 values: 2.09 (sec).
## Reading a csv with 625000 values: 0.2 (sec).
## Reading a csv with 625000 values: 0.21 (sec).
## Reading a csv with 625000 values: 0.213 (sec).
## # Programming benchmarks (5 tests):
## # Matrix calculation benchmarks (5 tests):
## # Matrix function benchmarks (5 tests):
timer
## user system elapsed
## 113.10 3.19 572.56
my_profile